//
//  UIView+SRRenderPerformance.h
//  AWFoundation
//
//  Created by 索晓晓 on 2018/4/16.
//  Copyright © 2018年 SXiao.RR. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN


typedef NS_OPTIONS(NSUInteger,RenderPerformanceCirCleDirectionOptions){
    
    /** 上*/
    RenderPerformanceCirCleDirectionTop             = 1 << 0,
    /** 下*/
    RenderPerformanceCirCleDirectionBottom          = 1 << 1,
    /** 左*/
    RenderPerformanceCirCleDirectionLeft            = 1 << 2,
    /** 右*/
    RenderPerformanceCirCleDirectionRight           = 1 << 3,
    /** 上左*/
    RenderPerformanceCirCleDirectionTopLeft         = 1 << 4,
    /** 上右*/
    RenderPerformanceCirCleDirectionTopRight        = 1 << 5,
    /** 下左*/
    RenderPerformanceCirCleDirectionBottomLeft      = 1 << 6,
    /** 下右*/
    RenderPerformanceCirCleDirectionBottomRight     = 1 << 7,
    
    
};



@interface UIView (SRRenderPerformance)


/**
 添加圆角
 */
- (void)addCircleAngleWithSize:(CGSize)size;

- (void)addCircleAngleFromSize:(CGSize)size cirSize:(CGSize)cirsize;

- (void)addCircleAngleWithSize:(CGSize)size andDirection:(RenderPerformanceCirCleDirectionOptions)directions;

- (void)addCircleAngleFromSize:(CGSize)size cirSize:(CGSize)cirsize andDirection:(RenderPerformanceCirCleDirectionOptions)directions;


/**
 添加圆角和阴影
 
 @param size 圆角半径size
 @param color 阴影颜色
 */
- (void)addCircleAngleWithSize:(CGSize)size ShadowColor:( UIColor * _Nullable)color;


- (void)addEllipseMask;

@end

NS_ASSUME_NONNULL_END
